
package com.shop.cloud.mall.admin.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.baomidou.mybatisplus.core.metadata.IPage;
import com.shop.cloud.mall.common.entity.DistributionOrder;
import org.apache.ibatis.annotations.Param;

import java.math.BigDecimal;

/**
 * 分销订单
 *
 * @author 
 * @date 2021-04-30 10:26:30
 */
public interface DistributionOrderMapper extends BaseMapper<DistributionOrder> {

	IPage<DistributionOrder> selectPage1(IPage<DistributionOrder> page, @Param("query") DistributionOrder distributionOrder);

	/**
	 * 获取分销员的冻结金额
	 * @param distributionUserId
	 * @return
	 */
	BigDecimal getDistributionUserFrozenAmount(String distributionUserId);
}
